#ifndef BHXJRECTANGLE_H
#define BHXJRECTANGLE_H
#include<BHXJControls_global.h>
#include<BHXJGLHelper/bhxjglshader.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
class BHXJCONTROLS_EXPORT BHXJGLRectangle
{
public:
    BHXJGLRectangle();
    virtual ~BHXJGLRectangle();
    void Init(QOpenGLFunctions_4_3_Core *g,BHXJGLShader *s);
    void Paint(const glm::vec2 &size, const glm::vec3 &position,const glm::vec3 &up,const glm::vec3 &right
                                ,const glm::mat4 &view,const glm::mat4 &projection);
protected:
    unsigned int VAO=0;
    unsigned int VBO=0;
    unsigned int EBO=0;
    QOpenGLFunctions_4_3_Core *gl=nullptr;
    BHXJGLShader *shader=nullptr;

};

#endif // BHXJRECTANGLE_H
